//
//  WXLDataModel.m
//  段子手
//
//  Created by dllo on 16/3/19.
//  Copyright © 2016年 JokesTeam. All rights reserved.
//

#import "WXLDataModel.h"

@implementation WXLDataModel

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    
    if ([key isEqualToString:@"style"]) {
        self.style = [value stringValue];
    }
    
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        self.ID_data = [value stringValue];
    }
    if ([key isEqualToString:@"data"]) {
        self.dataArr = [WXLActionModel modelHandelWithArray:value];
    }
    if ([key isEqualToString:@"action"]) {
        self.type = [value[@"type"] stringValue];

    }
    
}

@end
